#!/bin/bash

if [ -L $0 ] ; then
	EXEC="$(readlink $0)"
else
	EXEC="$0"
fi

DIR="$( cd -L $( dirname "$EXEC" ) && pwd )"

export MAINSERVER='192.168.56.101'
export NODES=''
export JMETERCLIENT='192.168.56.102'

export RUN_MAIN=1
export RUN_NODES=1

export DEFAULT_PORT='15001'

export JAR=camid3-0.3.1-SNAPSHOT-jar-with-dependencies.jar

export CAMID_JAR=$DIR/target/$JAR

export SSH_KEY_NAME=vbox_dsa

export SSH_KEY=scripts/$SSH_KEY_NAME

export USER=ubuntu
export TARGET_LOCATION=/home/$USER

export TESTCASE='direct-expMiddleware.jmx'

export TEST_OBJECT=camid.test.testobjects.DelayObject

export JMETER_DIR=apache-jmeter-2.9
export JMETER_ROOT=/home/diego/util/jmeter/$JMETER_DIR
export JMETER_OPTS="-n -t $TESTCASE -l expMiddleware.log"

export COLON_SEP_NODES=$( echo $NODES | tr ' ' ':' )

export MVN_OPTS='package assembly:single'

export MGMT_OPTS=''

export SSH_OPTS='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'

export JVM_ARGS="-Dcamid.ssh.user=$USER -Dcamid.ssh.key=$TARGET_LOCATION/$SSH_KEY_NAME -Dcamid.main.node=$MAINSERVER -Dcamid.work.nodes=${NODES/\ /:} -Dcamid.port=15001 -Dcamid.scripts.startnode=$TARGET_LOCATION/start-node.sh -Dcamid.scripts.stopnode=$TARGET_LOCATION/stop-node.sh"

export TEST_OBJECT=camid.test.testobjects.DelayObject


